package com.bgds.sys.module.mapper;

import com.bgds.sys.module.entity.PermissionDevice;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bgds.sys.module.entity.dto.DeviceDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lj
 * @since 2020-07-09
 */
public interface PermissionDeviceMapper extends BaseMapper<PermissionDevice> {


    /**
     *  菜单ID查询设备组
     * @param permissionId
     * @return
     */
    List<DeviceDto> listByPermissionId(@Param("permissionId") Long permissionId);

}
